﻿<controls:MetroContentControl x:Class="Wix.Win8SetupBootstrapper.Views.WelcomePageView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:controls="http://metro.mahapps.com/winfx/xaml/controls"
             xmlns:viewModels="clr-namespace:Wix.Win8SetupBootstrapper.ViewModels"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="450" d:DataContext="{d:DesignInstance viewModels:WelcomePageViewModel }">
    <DockPanel LastChildFill="True">
        <CheckBox IsChecked="{Binding IsLicenseApplied}" Margin="10,0,0,10" DockPanel.Dock="Bottom" Content="I agree to the License terms and conditions"/>
        <StackPanel Orientation="Vertical" DockPanel.Dock="Bottom" Margin="10,0,0,10">
            <TextBlock Text="Installation Folder"/>
            <Grid HorizontalAlignment="Stretch">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="70*"/>
                    <ColumnDefinition Width="30*"/>
                </Grid.ColumnDefinitions>
                <TextBox Text="{Binding InstallFolder}" />
                <Button Grid.Column="1" Content="Browse"  Margin="10,0,10,0" Command="{Binding BrowseDirectoryCommand}"/>
            </Grid>

        </StackPanel>
        <ContentPresenter Content="{Binding LicenseDocument}" Margin="0,0,0,10" />
    </DockPanel>
</controls:MetroContentControl>
